
.index-header {
  position: relative;
  width: 100%;
  background: @white;
  height: (40/@font-size-base)*1rem;
  .hairline(bottom, #e1e1e1);

  ul {
    position: relative;
    height: (40/@font-size-base)*1rem;
    width: 100%;
    overflow-x: scroll;
    overflow-y: hidden;
    list-style: none;
    margin: 0;
    box-sizing: border-box;
    padding: 0 (40/@font-size-base)*1rem 0 0;
    white-space: nowrap;
    >li {
      height: (40/@font-size-base)*1rem;
      line-height: (40/@font-size-base)*1rem  ;
      padding: 0 (15/@font-size-base)*1rem;
      text-align: center;
      display: inline-block;
      a {
        font-size: (14/@font-size-base)*1rem;
        color: #8a8a8a;
        &.active {
          color: #333;
        }
      }
    }
  }

  .header-add {
    position: absolute;
    .flexbox();
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    .justify-content(center);
    .align-items(center);
    width: (40/@font-size-base)*1rem;
    height: (40/@font-size-base)*1rem;
    background: @white;
    .hairline(left, #e1e1e1);

    i {
      display: inline-block;
      vertical-align: middle;
      width: (10/@font-size-base)*1rem;
      height: (10/@font-size-base)*1rem;
      background: url("../../images/add_icon.png") no-repeat;
      background-size: 100%;
    }
  }
}

.index-article {
  width: 100%;
  padding-top: (10/@font-size-base)*1rem;
  background-color: @white;
  .article-list {
    .article-title {
      .flexbox();
      width: 100%;
      margin-right: 0;
    }

    .article-title-info {
      display: -webkit-box;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 2;
      overflow: hidden;
      flex: 1;
      width: 100%;
      .flex-shrink(1);
    }
    .article-ctr {
      .flexbox();
      width: (80/@font-size-base)*1rem;
      .flex-shrink(0);
      .justify-content(flex-end);
      .align-items(center);

      .button {
        width: (50/@font-size-base)*1rem;
        height: (25/@font-size-base)*1rem;
        line-height: (23/@font-size-base)*1rem;
        border-radius: 2px;
      }
    }
  }

}